<template>
    <div class="app-container">
        <el-form ref="form" :model="form" label-width="200px">
            <el-row>
                <el-col :span="12">
                    <el-card class="box-card">
                        <div slot="header" class="clearfix">
                            <span>APP配置</span>
                        </div>
                        <el-form-item label="发现页链接">
                            <el-input v-model="form.name"/>
                        </el-form-item>
                        <div style="text-align: right;">
                            <el-button type="primary">保 存</el-button>
                        </div>
                    </el-card>
                    <el-card class="box-card" style="margin-top: 20px;">
                        <div slot="header" class="clearfix">
                            <span>区块链配置</span>
                        </div>
                        <el-form-item :label="item + '转账手续费'" v-for="(item, index) in tokenNameList" :key="index">
                            <el-input style="width: 80%" v-model="form.name"/> {{item}}
                        </el-form-item>
                        <el-form-item label="BTC及链上资产所需确认数">
                            <el-input style="width: 80%" v-model="form.name"/>
                        </el-form-item>
                        <el-form-item label="ETH及链上资产所需确认数">
                            <el-input style="width: 80%" v-model="form.name"/>
                        </el-form-item>
                        <div style="text-align: right;">
                            <el-button type="primary">保 存</el-button>
                        </div>
                    </el-card>
                </el-col>
            </el-row>
        </el-form>
    </div>
</template>

<script>

  import { TOKEN_NAME_LIST } from '@/utils/constant'

  export default {
    data () {
      return {
        form: {
          name: '',
        },
        tokenNameList: TOKEN_NAME_LIST
      }
    },
    methods: {
      onSubmit () {
        this.$message('submit!')
      }
    }
  }
</script>

<style scoped>
    .line {
        text-align: center;
    }
</style>

